@@ -151,9 +151,9 @@ ENABLE_SECOND_PRECISION_SCHEDULE=false |
||
151 | 151 |
# at the expense of time accuracy. |
152 | 152 |
SCHEDULER_FREQUENCY=0.3 |
153 | 153 |
|
154 |
-# Specify the frequency with which the scheduler checks for event expiration. |
|
154 |
+# Specify the frequency with which the scheduler checks for and cleans up expired events. |
|
155 | 155 |
# You can use `m` for minutes, `h` for hours, and `d` for days. |
156 |
-EVENT_EXPIRATION_CHECK=3h |
|
156 |
+EVENT_EXPIRATION_CHECK=6h |
|
157 | 157 |
|
158 | 158 |
# Use Graphviz for generating diagrams instead of using Google Chart |
159 | 159 |
# Tools. Specify a dot(1) command path built with SVG support |
@@ -348,7 +348,7 @@ describe ScenarioImport do |
||
348 | 348 |
"0" => { |
349 | 349 |
"name" => "updated name", |
350 | 350 |
"schedule" => "6pm", |
351 |
- "keep_events_for" => 2.days.to_i, |
|
351 |
+ "keep_events_for" => 2.days.to_i.to_s, |
|
352 | 352 |
"disabled" => "false", |
353 | 353 |
"options" => weather_agent_options.merge("api_key" => "foo").to_json |
354 | 354 |
} |
@@ -361,7 +361,7 @@ describe ScenarioImport do |
||
361 | 361 |
weather_agent = existing_scenario.agents.find_by(:guid => "a-weather-agent") |
362 | 362 |
expect(weather_agent.name).to eq("updated name") |
363 | 363 |
expect(weather_agent.schedule).to eq("6pm") |
364 |
- expect(weather_agent.keep_events_for).to eq(2.days) |
|
364 |
+ expect(weather_agent.keep_events_for).to eq(2.days.to_i) |
|
365 | 365 |
expect(weather_agent).not_to be_disabled |
366 | 366 |
expect(weather_agent.options).to eq(weather_agent_options.merge("api_key" => "foo")) |
367 | 367 |
end |